home *** CD-ROM | disk | FTP | other *** search
/ MacFormat 2000 July / macformat-092.iso / Dreamweaver 3 / Configuration / Commands / tableFormats.js < prev    next >
Encoding:
Text File  |  1999-12-01  |  10.3 KB  |  187 lines

  1.  //Copyright 1998 Macromedia, Inc. All rights reserved.
  2.  
  3.  
  4. function tableFormats(){
  5.   var Formats=new Array();
  6.   var i=-1;
  7.  
  8. // ***** Define all additional table formats after this line! *****
  9.  
  10. // *********************Simple Formats************************
  11.  
  12. //Directions: To define a new format, copy a format definition and paste in another location.
  13. //Change the name property to reflect the new name. Change the properties to reflect the new
  14. //properties.
  15.  
  16. //Notes:
  17. //*Define null values as empty strings
  18. //except text styles; define null text styles as 0
  19. //*rowLimit usage: row color is alternated every rowLimit rows.
  20. //Text Styles are defined as constants: NONE,BOLD,ITALIC, and BOLD_ITALIC
  21.  
  22. //Simple1
  23. Formats[++i] = new Array();                   Formats[i].name="Simple1";                       
  24. Formats[i].firstRowColor="";                  Formats[i].secondRowColor="";
  25. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="";
  26. Formats[i].topRowColor="#99FF00";             Formats[i].topRowTextColor="";
  27. Formats[i].leftColTextStyle=ITALIC;           Formats[i].leftColAlign="";
  28. Formats[i].border="0";                        Formats[i].rowLimit="0";
  29.  
  30. //Simple2
  31. Formats[++i] = new Array();                   Formats[i].name="Simple2";                       
  32. Formats[i].firstRowColor="";                  Formats[i].secondRowColor="";
  33. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  34. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  35. Formats[i].leftColTextStyle=BOLD;             Formats[i].leftColAlign="center";
  36. Formats[i].border="1";                        Formats[i].rowLimit="0";
  37.  
  38. //Simple3
  39. Formats[++i] = new Array();                   Formats[i].name="Simple3";                       
  40. Formats[i].firstRowColor="#FFFFCA";           Formats[i].secondRowColor="";
  41. Formats[i].topRowTextStyle=NONE;              Formats[i].topRowAlign="";
  42. Formats[i].topRowColor="#DFDFFF";             Formats[i].topRowTextColor="";
  43. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  44. Formats[i].border="0";                        Formats[i].rowLimit="0";
  45.  
  46. //Simple4
  47. Formats[++i] = new Array();                   Formats[i].name="Simple4";                       
  48. Formats[i].firstRowColor="lightgreen";        Formats[i].secondRowColor="";
  49. Formats[i].topRowTextStyle=ITALIC;            Formats[i].topRowAlign="center";
  50. Formats[i].topRowColor="lightyellow";         Formats[i].topRowTextColor="";
  51. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  52. Formats[i].border="1";                        Formats[i].rowLimit="0";
  53.  
  54.  
  55.  // *********************Alternating Rows************************
  56.  
  57. //Directions: To define a new format, copy a format definition and paste in another location.
  58. //Change the name property to reflect the new name. Change the properties to reflect the new
  59. //format. For instance, to create a table with red and white alternating rows, set
  60. //Formats[i].firstRowColor to red and Formats[i].secondRowColor to white.
  61.  
  62. //Notes:-All properties must be defined.
  63. //-Colors can be defined with color names or hex values.
  64. //-rowLimit usage: row color is alternated every rowLimit rows.
  65. //Text Styles are defined as constants: NONE,BOLD,ITALIC, and BOLD_ITALIC
  66.  
  67. //Blue & Yellow
  68. Formats[++i] = new Array();                   Formats[i].name="AltRows:Blue&Yellow";                       
  69. Formats[i].firstRowColor="#FFFFCC";           Formats[i].secondRowColor="#6666CC";
  70. Formats[i].topRowTextStyle=NONE;              Formats[i].topRowAlign="LEFT";
  71. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  72. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  73. Formats[i].border="2";                        Formats[i].rowLimit="1";
  74.  
  75. //Earth Colors
  76. Formats[++i] = new Array();                   Formats[i].name="AltRows:Earth Colors";                       
  77. Formats[i].firstRowColor="#CC9900";           Formats[i].secondRowColor="#CCCC00";
  78. Formats[i].topRowTextStyle=ITALIC;            Formats[i].topRowAlign="";
  79. Formats[i].topRowColor="#666600";             Formats[i].topRowTextColor="#CC9900";
  80. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  81. Formats[i].border="0";                        Formats[i].rowLimit="1";
  82.  
  83. //Earth Colors 2
  84. Formats[++i] = new Array();                   Formats[i].name="AltRows:Earth Colors2";                       
  85. Formats[i].firstRowColor="#FFFFCC";           Formats[i].secondRowColor="#CCCC00";
  86. Formats[i].topRowTextStyle=NONE;              Formats[i].topRowAlign="";
  87. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  88. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  89. Formats[i].border="0";                        Formats[i].rowLimit="1";
  90.  
  91. //Green & Yellow
  92. Formats[++i] = new Array();                   Formats[i].name="AltRows:Green&Yellow";                       
  93. Formats[i].firstRowColor="#FFFFCC";           Formats[i].secondRowColor="#CCFF99";
  94. Formats[i].topRowTextStyle=NONE;              Formats[i].topRowAlign="center";
  95. Formats[i].topRowColor="#6633CC";             Formats[i].topRowTextColor="white";
  96. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="center";
  97. Formats[i].border="2";                        Formats[i].rowLimit="1";
  98.  
  99. //Grey
  100. Formats[++i] = new Array();                   Formats[i].name="AltRows:Basic Grey";                       
  101. Formats[i].firstRowColor="lightgrey";         Formats[i].secondRowColor="white";
  102. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  103. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  104. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  105. Formats[i].border="0";                        Formats[i].rowLimit="1";
  106.  
  107. //Orange
  108. Formats[++i] = new Array();                   Formats[i].name="AltRows:Orange";                       
  109. Formats[i].firstRowColor="#FF9900";           Formats[i].secondRowColor="#FFCC66";
  110. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="";
  111. Formats[i].topRowColor="yellow";              Formats[i].topRowTextColor="";
  112. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  113. Formats[i].border="0";                        Formats[i].rowLimit="1";
  114.  
  115.  
  116. //Red
  117. Formats[++i] = new Array();                   Formats[i].name="AltRows:Red";                       
  118. Formats[i].firstRowColor="#FF6666";           Formats[i].secondRowColor="#FFFFCC";
  119. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  120. Formats[i].topRowColor="#FFFF99";             Formats[i].topRowTextColor="";
  121. Formats[i].leftColTextStyle=ITALIC;           Formats[i].leftColAlign="center";
  122. Formats[i].border="0";                        Formats[i].rowLimit="1";
  123.  
  124. //Sunset
  125. Formats[++i] = new Array();                   Formats[i].name="AltRows:Sunset";                       
  126. Formats[i].firstRowColor="yellow";            Formats[i].secondRowColor="orange";
  127. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  128. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="blue";
  129. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="center";
  130. Formats[i].border="0";                        Formats[i].rowLimit="1";
  131.  
  132.  
  133.  // *********************Double Rows************************
  134.  
  135. //Directions: To define a new format, copy a format definition and paste in another location. //Change the name property to reflect the new name. Change the properties to reflect the new //format. For instance, to create a table with red and white alternating rows, set //Formats[i].firstRowColor to red and Formats[i].secondRowColor to white.
  136.  
  137. //Notes:-All properties must be defined.
  138. //-Use "" to indicate no formatting. This removes the current formatting.
  139. //-rowLimit usage: row color is alternated every rowLimit rows.
  140. //Text Styles are defined as constants: NONE,BOLD,ITALIC, and BOLD_ITALIC
  141.  
  142. //Cyan
  143. Formats[++i] = new Array();                   Formats[i].name="DblRows:Cyan";                       
  144. Formats[i].firstRowColor="#CCFFFF";           Formats[i].secondRowColor="#66FFCC";
  145. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  146. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  147. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  148. Formats[i].border="3";                        Formats[i].rowLimit="2";
  149.  
  150. //Grey
  151. Formats[++i] = new Array();                   Formats[i].name="DblRows:Grey";                       
  152. Formats[i].firstRowColor="white";             Formats[i].secondRowColor="lightgrey";
  153. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  154. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  155. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  156. Formats[i].border="1";                        Formats[i].rowLimit="2";
  157.  
  158. //Light Green
  159. Formats[++i] = new Array();                   Formats[i].name="DblRows:Light Green";                       
  160. Formats[i].firstRowColor="white";             Formats[i].secondRowColor="lightgreen";
  161. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  162. Formats[i].topRowColor="lightyellow";         Formats[i].topRowTextColor="red";
  163. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="";
  164. Formats[i].border="2";                        Formats[i].rowLimit="2";
  165.  
  166. //Magenta & Blue
  167. Formats[++i] = new Array();                   Formats[i].name="DblRows:Magenta,Blue";                       
  168. Formats[i].firstRowColor="#CC00FF";           Formats[i].secondRowColor="#CCFFFF";
  169. Formats[i].topRowTextStyle=NONE;              Formats[i].topRowAlign="";
  170. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  171. Formats[i].leftColTextStyle=NONE;             Formats[i].leftColAlign="center";
  172. Formats[i].border="1";                        Formats[i].rowLimit="2";
  173.  
  174. //Orange
  175. Formats[++i] = new Array();                   Formats[i].name="DblRows:Orange";                       
  176. Formats[i].firstRowColor="white";             Formats[i].secondRowColor="orange";
  177. Formats[i].topRowTextStyle=BOLD;              Formats[i].topRowAlign="center";
  178. Formats[i].topRowColor="";                    Formats[i].topRowTextColor="";
  179. Formats[i].leftColTextStyle=ITALIC;           Formats[i].leftColAlign="left";
  180. Formats[i].border="1";                        Formats[i].rowLimit="2";
  181.  
  182. // ****** When defining additional formats, don't go below this line! ******
  183.  
  184.   return Formats;
  185. }
  186.  
  187.